hvm: Fix max_mapped_pfn when using 2MB super pages.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 13 Jun 2008 08:56:49 +0000 (09:56 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 13 Jun 2008 08:56:49 +0000 (09:56 +0100)
commit4565fb811d5eeaed34c870ec193050ed45ea6aeb
tree26bcfe683331075572ba3a68ea85cc22ced041f4
parent65ce603cc1ca8882b22e3bf689b1958eedd40c97
hvm: Fix max_mapped_pfn when using 2MB super pages.

Fixes booting Linux guest allocated more than 4G memory.
  - The p2m table will track the max_mapped_pfn, and while doing
    p2m_gfn_to_mfn(), if the gfn is higher than max_mapped_pfn, the
    function will return _mfn(INVALID_MFN). This makes the Linux guest
    kernel panic.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
xen/arch/x86/mm/p2m.c